package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile   string `gorm:"type:char(11);not null"` //手机号
	Password string `gorm:"type:char(32);not null"` //密码
	//HeadImage string `gorm:"type:varchar(500);not null"` //头像
	//NickName  string `gorm:"type:varchar(30);not null"`  //昵称
	//Info      string `gorm:"type:varchar(300);not null"` //简介
}
type Goods struct {
	gorm.Model
	Title  string  `gorm:"type:varchar(40);not null"`
	UserId int     `gorm:"type:int(11);not null"`
	Price  float64 `gorm:"type:decimal(10,2);not null"`
	Stock  int     `gorm:"type:int(11);not null"`
	Image  string  `gorm:"type:varchar(500);not null"`
}
